<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>函数传参</title>
	</head>
	<body>
		<p>对象参数</p>
		<img src="1.png" />
		<p>字符串参数</p>
		<img src="2.png" />
	</body>
</html>
<script>
   /* js接受参数的几种形式*/
   /*1.对象参数     通过名/值对的形式来传入参数，这样参数的顺序就无关紧要了,传入的实参都写入一个单独的对象之中.*/
   var dom ={form:"aa",to:null,length:'嗷嗷待食大"111"爱仕达大所'};     
   show({form:"aa",to:null,length:'嗷嗷待食大"111"爱仕达大所'});
   //show(dom);
   function show(event){
   	 console.log(event);  	    	 
   }
   /*2.普通的字符串参数   传入的参数和接受的参数顺序要一一对应*/
   var a = "",b=null,c=undefined,d="1231231",f='12312"werw"321231'; 
   getCurr("",null,undefined,"普通的字符串",'12312"werw"321231');
   //getCurr(a,b,c,d,f);
   function getCurr(a,b,c,d,f){
   	console.log(a);
   	console.log(b);
   	console.log(c);
   	console.log(d);
   	console.log(f);
   }   
</script>